package com.ease.framework.workbench.parts
{
	import com.ease.framework.workbench.viewer.IViewer;
	
	import flash.events.EventDispatcher;
	
	import mx.core.Container;

	public class View extends EventDispatcher implements IViewPart
	{
		protected var _viewer:IViewer
		
		private var _parent:Container;
		
		public function View()
		{
		}

		public function set viewer(value:IViewer):void{
			this._viewer = value;
		}	
		
		public function get viewer():IViewer
		{
			return _viewer;
		}
		
		public function set parent(value:Container):void{
			this._parent = value;
		}
		
		public function get parent():Container{
			return this._parent;
		}
		
		public function createPartControl(parent:Container=null):Container
		{
			this._parent = parent;
			return this._parent;
		}
		
	}
}